package com.zhangtai.modules.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class RoleMenuVo {

//    @NotNull(message = "角色id不能为空")
//    @ApiModelProperty(value="角色id",name="roleId",required = true)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long roleId;
    /**
     * 菜单ID
     */
//    @NotNull(message = "权限字段id集合不能为空")
//    @ApiModelProperty(value="权限字段id集合",name="menuIds",required = true)
 
    private String[] menuIds;
}
